/*
 * Copyright 2007 Jeffrey Palm
 */

import java.util.*;

public class Feed extends HasAttributes {
  
  private final String link;
  private final String title;
  private final Vector items = new Vector();

  public Feed(String link, String title) {
    this.link  = link;
    this.title = title;
  }

  
  public final String getLink() {
    return link;
  }

  public final String getTitle() {
    return title;
  }

  public void add(Item item) {
    items.addElement(item);
  }

  public Item[] getAll() {
    Item[] vs = new Item[items.size()];
    for (int i=0; i<vs.length; i++) vs[i] = (Item)items.elementAt(i);
    return vs;

  }
}
